package cn.iocoder.yudao.module.pickbook.controller.admin.book.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 绘本新增/修改 Request VO")
@Data
public class BookSaveReqVO {

    @Schema(description = "书籍唯一ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1666")
    private Long id;

    @Schema(description = "书名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "书名不能为空")
    private String title;

    @Schema(description = "封面图片URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "封面图片URL不能为空")
    private String coverUrl;

    @Schema(description = "语言", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "语言不能为空")
    private String language;

    @Schema(description = "分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "分类不能为空")
    private String category;

    @Schema(description = "所属系列ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23505")
    @NotNull(message = "所属系列ID不能为空")
    private Long seriesId;

    @Schema(description = "年级水平（1-6）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "年级水平（1-6）不能为空")
    private Integer gradeLevel;

    @Schema(description = "难度等级（1-5）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "难度等级（1-5）不能为空")
    private Integer difficulty;

    @Schema(description = "标签数组（逗号分隔）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标签数组（逗号分隔）不能为空")
    private String tags;

    @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "创建者不能为空")
    private String creator;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "更新者不能为空")
    private String updater;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "是否删除")
    private Boolean deleted;

}